from django.contrib import admin
from django.urls import path
from django.views.static import serve
from django.conf import settings

from course import views
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('category', views.CourseCategoryView, 'category')
router.register('list', views.CourseView, 'list')
router.register('chapter', views.CourseChapterView, 'chapter')
router.register('search', views.CourseSearchView, 'search')
# router.register('pay', views.PayView, 'pay')
urlpatterns = [

]
urlpatterns += router.urls
